home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20030409-20031118
/
000313_fdc@columbia.edu_Mon Sep 29 11:22:49 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2003-11-18
|
2KB
|
50 lines
Article: 14558 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news-not-for-mail
From: fdc@sesame.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Array assignment problem
Date: 29 Sep 2003 11:22:45 -0400
Organization: Columbia University
Lines: 32
Message-ID: <bl9io5$ge5$1@sesame.cc.columbia.edu>
References: <Eu1db.229$3I6.194268280@newssvr11.news.prodigy.com> <bl4am6$7m1$1@sesame.cc.columbia.edu> <5MXdb.664$Rg3.532194417@newssvr11.news.prodigy.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1064848965 14344 128.59.59.56 (29 Sep 2003 15:22:45 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 29 Sep 2003 15:22:45 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14558
In article <5MXdb.664$Rg3.532194417@newssvr11.news.prodigy.com>,
Jun Zhang <nugulus@netscape.net> wrote:
: The assignment
: \%1 = \&a[1]
: didn't take effect, since
: echo "\%1"
: give me nothing. I intended to pass \%1 as argument to DELIVER.
: Please shed me some light.
:
There are several ways to assign values to varibles, including:
DEFINE <variable-name> <value>
ASSIGN <variable-name> <value>
Use "help define" and "help assign" to see what the difference is.
An alternative notation can be used similar to what you are trying to do,
it is described here:
http://www.columbia.edu/kermit/ckermit70.html#x7.9
Note that to use this notation, you have to put a period before the
variable name, and in this case you probably also want the "assign"
operator, rather than the "define" one:
.\%1 := \&a[1]
This is equivalent to:
assign \%1 \&a[1]
- Frank